home *** CD-ROM | disk | FTP | other *** search
/ The Web Masters 11 / WEB_11.iso / 100domes / Antechinus JavaScript Editor 2.0 / Setup.exe / Setups / JSEd / Installed / Solutions / Misc / BrowserCheck.js next >
Text File  |  2001-09-29  |  546b  |  18 lines

  1. function BrowserCheck() 
  2. {
  3. var b = navigator.appName
  4. if (b=="Netscape") this.b = "ns"
  5. else if (b=="Microsoft Internet Explorer") this.b = "ie"
  6. else this.b = b
  7. this.version = navigator.appVersion
  8. this.v = parseInt(this.version)
  9. this.ns = (this.b=="ns" && this.v>=4)
  10. this.ns4 = (this.b=="ns" && this.v==4)
  11. this.ns5 = (this.b=="ns" && this.v==5)
  12. this.ie = (this.b=="ie" && this.v>=4)
  13. this.ie4 = (this.version.indexOf('MSIE 4')>0)
  14. this.ie5 = (this.version.indexOf('MSIE 5')>0)
  15. this.min = (this.ns||this.ie)
  16. }
  17. is = new BrowserCheck()
  18.